package logic.ships.hunter;

import com.jme.scene.Controller;

public class CounterMeasureController extends Controller {
	
	private static final long serialVersionUID = 1L;
	
	private CounterMeasure counterMeasure;
	
	public CounterMeasureController(CounterMeasure counterMeasure) {
		this.counterMeasure = counterMeasure;
	}
	
	@Override
	public void update(float time) {
		if(counterMeasure.isReloading()) counterMeasure.reload(time);
	}
}